﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Restful_Api.Models
{
    /// <summary>
    /// 用于HATEOAS 给响应添加一个额外的Link属性
    /// </summary>
    public class LinkDto
    {
        public LinkDto(string herf, string rel, string method)
        {
            Herf = herf;
            Rel = rel;
            Method = method;
        }

        public string Herf { get; }
        public string Rel { get; }
        public string Method { get; }
    }
}
